package com.inter.mapper;

import com.inter.entity.common.DevicePartnerAccess;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DevicePartnerAccessMapper {

    public void putInPartnerAccessInfo(DevicePartnerAccess access);

    public List<DevicePartnerAccess> getPartnerAccessList(@Param("partnerCode") String partnerCode, @Param("deviceId")String deviceId, @Param("deviceType")String deviceType);

    public int findAccessInfoByCodeAndId(@Param("token")String token, @Param("partnerCode")String partnerCode, @Param("deviceId")String deviceId, @Param("deviceType")String deviceType, @Param("requestOrderId")String requestOrderId);
}
